package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.Activity")
@Data
@TableName(value = "activity")
public class Activity {
    /**
     * 活动id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "活动id")
    private Integer id;

    /**
     * 活动名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "活动名称")
    private String name;

    /**
     * 达到要求满减要求的数量
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "达到要求满减要求的数量")
    private Integer num;

    /**
     * 达到要求满减要求的价格
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "达到要求满减要求的价格")
    private Integer price;

    /**
     * 折扣
     */
    @TableField(value = "discount")
    @ApiModelProperty(value = "折扣")
    private Integer discount;

    /**
     * 减去多少钱
     */
    @TableField(value = "money")
    @ApiModelProperty(value = "减去多少钱")
    private Integer money;

    /**
     * 赠送礼品
     */
    @TableField(value = "gift_id")
    @ApiModelProperty(value = "赠送礼品")
    private Integer giftId;

    /**
     * 活动类型,1:打折,2:满减,待补充
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "活动类型,1:打折,2:满减,待补充")
    private Integer type;

    /**
     * 活动开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value = "活动开始时间")
    private Integer startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value = "结束时间")
    private Integer endTime;
}